package com.sczmgk.hotline_pzh.jpush;

import com.sczmgk.hotline_pzh.entity.MessageCountBean;

import java.util.Observable;

/**
 * Created by Administrator on 2016/11/3.
 */

public  class UIObserver extends Observable{
    private static UIObserver instance;

    private UIObserver(){

    }
    public static UIObserver getInstance(){
        if(instance == null){
            instance = new UIObserver();
        }
        return instance;
    }


    /**
     * 有新消息
     */
    public void hasNewMes(MessageCountBean counts) {
        setChanged();
        notifyObservers(counts);
    }
}
